package com.jcbase.job;

import java.util.TimerTask;

import org.apache.log4j.Logger;

import com.jcbase.model.SysSite;

public class SiteSourceInJob extends TimerTask {
    private static Logger log = Logger.getLogger(AdUserInJob.class);
    String data_host;
    String data_user;
    String data_password;

    public SiteSourceInJob(String data_host, String data_user, String data_password) {
	super();
	this.data_host = data_host;
	this.data_user = data_user;
	this.data_password = data_password;

    }

    @Override
    public void run() {
	log.info("开始执行站点同步");
	SysSite.me.dataIn(this.data_host, this.data_user, this.data_password);
	log.info("站点同步执行完成");
    }

    public String getData_host() {
	return data_host;
    }

    public void setData_host(String data_host) {
	this.data_host = data_host;
    }

    public String getData_user() {
	return data_user;
    }

    public void setData_user(String data_user) {
	this.data_user = data_user;
    }

    public String getData_password() {
	return data_password;
    }

    public void setData_password(String data_password) {
	this.data_password = data_password;
    }

}
